using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Bxas.Core;
using System.Xml.Serialization;
using PhotoHsn.BLL.Abstracts;
using PhotoHsn.BLL.Adapters;
using PhotoHsn.BLL.Core;

namespace PhotoHsn.BLL.Adapters
{
    [XmlType(Namespace = "urn:DataObjects")]
    [XmlRoot(Namespace = "urn:DataObjects")]
    [Serializable]
    public class Photos : ColumnInfo
    {
        public Photos()
        {
            this.priymatyKeyColumnName = "Id";
            this.priymatyKeyColumnType = typeof(System.Guid);
            this.TableName = "Photos";
        }

        #region Fields
		private Guid id = System.Guid.Empty;
		private Guid memberId = System.Guid.Empty;
		private Int32 childCategoryId = -1;
		private string photoUrl = string.Empty;
		private string name = string.Empty;
		private string label = string.Empty;
		private Int32 photoCamera = -1;
		private Int32 photoLens = -1;
		private string diaphragm = string.Empty;
		private string shutterSpeed = string.Empty;
		private string asa = string.Empty;
		private string orjFormat = string.Empty;
		private string comments = string.Empty;
		private Int32 rating = -1;
		private DateTime createDate = new DateTime();
		private DateTime updateDate = new DateTime();
		private bool isActive = false;
		private bool isDeleted = false;
		private bool isBadContent = false;

        #endregion
        
        #region Properties
 
		///<summary>
		///Required = true
		///DBType = uniqueidentifier
		///C# Type = Guid
		///</summary> 
		[ColumnAttributes("Id",true,"Guid")]
		public Guid Id
		{
			 get 
			 {
			    return id;
			 }
			 set 
			 { 
			    if (value != id)
			    { 
			      id = value; 
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.Id))
			      IsUpdateOrInsert.Add(Photos.ColumnNames.Id, true); 
			      this.IsDirty = true; 
			    }
			 }
		}
 
		///<summary>
		///Required = true
		///DBType = uniqueidentifier
		///C# Type = Guid
		///</summary> 
		[ColumnAttributes("MemberId",true,"Guid")]
		public Guid MemberId
		{
			 get 
			 {
			    return memberId;
			 }
			 set 
			 { 
			    if (value != memberId)
			    { 
			      memberId = value; 
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.MemberId))
			      IsUpdateOrInsert.Add(Photos.ColumnNames.MemberId, true); 
			      this.IsDirty = true; 
			    }
			 }
		}
 
		///<summary>
		///Required = true
		///DBType = int
		///C# Type = Int32
		///</summary> 
		[ColumnAttributes("ChildCategoryId",true,"Int32")]
		public Int32 ChildCategoryId
		{
			 get 
			 {
			    return childCategoryId;
			 }
			 set 
			 { 
			    if (value != childCategoryId)
			    { 
			      childCategoryId = value; 
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.ChildCategoryId))
			      IsUpdateOrInsert.Add(Photos.ColumnNames.ChildCategoryId, true); 
			      this.IsDirty = true; 
			    }
			 }
		}
 
		///<summary>
		///Required = true
		///DBType = nvarchar
		///C# Type = string
		///</summary> 
		[ColumnAttributes("PhotoUrl",true,"string")]
		public string PhotoUrl
		{
			 get 
			 {
			    return photoUrl;
			 }
			 set 
			 { 
			    string valueTrimmed = value.Trim(); 

			    if (valueTrimmed != photoUrl)
			    { 
			      photoUrl = valueTrimmed; 
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.PhotoUrl))
			      IsUpdateOrInsert.Add(Photos.ColumnNames.PhotoUrl, true); 
			      this.IsDirty = true; 
			    }
			 }
		}
 
		///<summary>
		///Required = true
		///DBType = nvarchar
		///C# Type = string
		///</summary> 
		[ColumnAttributes("Name",true,"string")]
		public string Name
		{
			 get 
			 {
			    return name;
			 }
			 set 
			 { 
			    string valueTrimmed = value.Trim(); 

			    if (valueTrimmed != name)
			    { 
			      name = valueTrimmed; 
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.Name))
			      IsUpdateOrInsert.Add(Photos.ColumnNames.Name, true); 
			      this.IsDirty = true; 
			    }
			 }
		}
 
		///<summary>
		///Required = true
		///DBType = nvarchar
		///C# Type = string
		///</summary> 
		[ColumnAttributes("Label",true,"string")]
		public string Label
		{
			 get 
			 {
			    return label;
			 }
			 set 
			 { 
			    string valueTrimmed = value.Trim(); 

			    if (valueTrimmed != label)
			    { 
			      label = valueTrimmed; 
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.Label))
			      IsUpdateOrInsert.Add(Photos.ColumnNames.Label, true); 
			      this.IsDirty = true; 
			    }
			 }
		}
 
		///<summary>
		///Required = true
		///DBType = int
		///C# Type = Int32
		///</summary> 
		[ColumnAttributes("PhotoCamera",true,"Int32")]
		public Int32 PhotoCamera
		{
			 get 
			 {
			    return photoCamera;
			 }
			 set 
			 { 
			    if (value != photoCamera)
			    { 
			      photoCamera = value; 
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.PhotoCamera))
			      IsUpdateOrInsert.Add(Photos.ColumnNames.PhotoCamera, true); 
			      this.IsDirty = true; 
			    }
			 }
		}
 
		///<summary>
		///Required = true
		///DBType = int
		///C# Type = Int32
		///</summary> 
		[ColumnAttributes("PhotoLens",true,"Int32")]
		public Int32 PhotoLens
		{
			 get 
			 {
			    return photoLens;
			 }
			 set 
			 { 
			    if (value != photoLens)
			    { 
			      photoLens = value; 
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.PhotoLens))
			      IsUpdateOrInsert.Add(Photos.ColumnNames.PhotoLens, true); 
			      this.IsDirty = true; 
			    }
			 }
		}
 
		///<summary>
		///Required = false
		///DBType = nvarchar
		///C# Type = string
		///</summary> 
		[ColumnAttributes("Diaphragm",false,"string")]
		public string Diaphragm
		{
			 get 
			 {
			    return diaphragm;
			 }
			 set 
			 { 
			    string valueTrimmed = value.Trim(); 

			    if (valueTrimmed != diaphragm)
			    { 
			      diaphragm = valueTrimmed; 
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.Diaphragm))
			      IsUpdateOrInsert.Add(Photos.ColumnNames.Diaphragm, true); 
			      this.IsDirty = true; 
			    }
			 }
		}
 
		///<summary>
		///Required = false
		///DBType = nvarchar
		///C# Type = string
		///</summary> 
		[ColumnAttributes("ShutterSpeed",false,"string")]
		public string ShutterSpeed
		{
			 get 
			 {
			    return shutterSpeed;
			 }
			 set 
			 { 
			    string valueTrimmed = value.Trim(); 

			    if (valueTrimmed != shutterSpeed)
			    { 
			      shutterSpeed = valueTrimmed; 
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.ShutterSpeed))
			      IsUpdateOrInsert.Add(Photos.ColumnNames.ShutterSpeed, true); 
			      this.IsDirty = true; 
			    }
			 }
		}
 
		///<summary>
		///Required = false
		///DBType = nvarchar
		///C# Type = string
		///</summary> 
		[ColumnAttributes("Asa",false,"string")]
		public string Asa
		{
			 get 
			 {
			    return asa;
			 }
			 set 
			 { 
			    string valueTrimmed = value.Trim(); 

			    if (valueTrimmed != asa)
			    { 
			      asa = valueTrimmed; 
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.Asa))
			      IsUpdateOrInsert.Add(Photos.ColumnNames.Asa, true); 
			      this.IsDirty = true; 
			    }
			 }
		}
 
		///<summary>
		///Required = false
		///DBType = nvarchar
		///C# Type = string
		///</summary> 
		[ColumnAttributes("OrjFormat",false,"string")]
		public string OrjFormat
		{
			 get 
			 {
			    return orjFormat;
			 }
			 set 
			 { 
			    string valueTrimmed = value.Trim(); 

			    if (valueTrimmed != orjFormat)
			    { 
			      orjFormat = valueTrimmed; 
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.OrjFormat))
			      IsUpdateOrInsert.Add(Photos.ColumnNames.OrjFormat, true); 
			      this.IsDirty = true; 
			    }
			 }
		}
 
		///<summary>
		///Required = true
		///DBType = nvarchar
		///C# Type = string
		///</summary> 
		[ColumnAttributes("Comments",true,"string")]
		public string Comments
		{
			 get 
			 {
			    return comments;
			 }
			 set 
			 { 
			    string valueTrimmed = value.Trim(); 

			    if (valueTrimmed != comments)
			    { 
			      comments = valueTrimmed; 
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.Comments))
			      IsUpdateOrInsert.Add(Photos.ColumnNames.Comments, true); 
			      this.IsDirty = true; 
			    }
			 }
		}
 
		///<summary>
		///Required = true
		///DBType = int
		///C# Type = Int32
		///</summary> 
		[ColumnAttributes("Rating",true,"Int32")]
		public Int32 Rating
		{
			 get 
			 {
			    return rating;
			 }
			 set 
			 { 
			    if (value != rating)
			    { 
			      rating = value; 
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.Rating))
			      IsUpdateOrInsert.Add(Photos.ColumnNames.Rating, true); 
			      this.IsDirty = true; 
			    }
			 }
		}
 
		///<summary>
		///Required = true
		///DBType = datetime
		///C# Type = DateTime
		///</summary> 
		[ColumnAttributes("CreateDate",true,"DateTime")]
		public DateTime CreateDate
		{
			 get 
			 {
			    return createDate;
			 }
			 set 
			 { 
			    if (value != createDate)
			    { 
			      createDate = value; 
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.CreateDate))
			      IsUpdateOrInsert.Add(Photos.ColumnNames.CreateDate, true); 
			      this.IsDirty = true; 
			    }
			 }
		}
 
		///<summary>
		///Required = true
		///DBType = datetime
		///C# Type = DateTime
		///</summary> 
		[ColumnAttributes("UpdateDate",true,"DateTime")]
		public DateTime UpdateDate
		{
			 get 
			 {
			    return updateDate;
			 }
			 set 
			 { 
			    if (value != updateDate)
			    { 
			      updateDate = value; 
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.UpdateDate))
			      IsUpdateOrInsert.Add(Photos.ColumnNames.UpdateDate, true); 
			      this.IsDirty = true; 
			    }
			 }
		}
 
		///<summary>
		///Required = true
		///DBType = bit
		///C# Type = bool
		///</summary> 
		[ColumnAttributes("IsActive",true,"bool")]
		public bool IsActive
		{
			 get 
			 {
			    return isActive;
			 }
			 set 
			 { 
			    if (value != isActive)
			    { 
			      isActive = value; 
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.IsActive))
			      IsUpdateOrInsert.Add(Photos.ColumnNames.IsActive, true); 
			      this.IsDirty = true; 
			    }
			 }
		}
 
		///<summary>
		///Required = true
		///DBType = bit
		///C# Type = bool
		///</summary> 
		[ColumnAttributes("IsDeleted",true,"bool")]
		public bool IsDeleted
		{
			 get 
			 {
			    return isDeleted;
			 }
			 set 
			 { 
			    if (value != isDeleted)
			    { 
			      isDeleted = value; 
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.IsDeleted))
			      IsUpdateOrInsert.Add(Photos.ColumnNames.IsDeleted, true); 
			      this.IsDirty = true; 
			    }
			 }
		}
 
		///<summary>
		///Required = true
		///DBType = bit
		///C# Type = bool
		///</summary> 
		[ColumnAttributes("IsBadContent",true,"bool")]
		public bool IsBadContent
		{
			 get 
			 {
			    return isBadContent;
			 }
			 set 
			 { 
			    if (value != isBadContent)
			    { 
			      isBadContent = value; 
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.IsBadContent))
			      IsUpdateOrInsert.Add(Photos.ColumnNames.IsBadContent, true); 
			      this.IsDirty = true; 
			    }
			 }
		}

        #endregion
		        
        #region StringProperties
 
		///<summary>
		///Required = true
		///DBType = Guid
		///C# Type = Guid
		///</summary> 
		public virtual string s_Id
		{
			 get 
			 {
			        return Getuniqueidentifier_s(id);
			 }
			 set 
			 { 
			        Setuniqueidentifier_s(value, ref id);
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.Id))
			        IsUpdateOrInsert.Add(Photos.ColumnNames.Id, true);
			        this.IsDirty = true;
			 }
		}
 
		///<summary>
		///Required = true
		///DBType = Guid
		///C# Type = Guid
		///</summary> 
		public virtual string s_MemberId
		{
			 get 
			 {
			        return Getuniqueidentifier_s(memberId);
			 }
			 set 
			 { 
			        Setuniqueidentifier_s(value, ref memberId);
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.MemberId))
			        IsUpdateOrInsert.Add(Photos.ColumnNames.MemberId, true);
			        this.IsDirty = true;
			 }
		}
 
		///<summary>
		///Required = true
		///DBType = Int32
		///C# Type = Int32
		///</summary> 
		public virtual string s_ChildCategoryId
		{
			 get 
			 {
			        return Getint_s(childCategoryId);
			 }
			 set 
			 { 
			        Setint_s(value, ref childCategoryId);
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.ChildCategoryId))
			        IsUpdateOrInsert.Add(Photos.ColumnNames.ChildCategoryId, true);
			        this.IsDirty = true;
			 }
		}
 
		///<summary>
		///Required = true
		///DBType = string
		///C# Type = string
		///</summary> 
		public virtual string s_PhotoUrl
		{
			 get 
			 {
			        return Getnvarchar_s(photoUrl);
			 }
			 set 
			 { 
			        Setnvarchar_s(value, ref photoUrl);
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.PhotoUrl))
			        IsUpdateOrInsert.Add(Photos.ColumnNames.PhotoUrl, true);
			        this.IsDirty = true;
			 }
		}
 
		///<summary>
		///Required = true
		///DBType = string
		///C# Type = string
		///</summary> 
		public virtual string s_Name
		{
			 get 
			 {
			        return Getnvarchar_s(name);
			 }
			 set 
			 { 
			        Setnvarchar_s(value, ref name);
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.Name))
			        IsUpdateOrInsert.Add(Photos.ColumnNames.Name, true);
			        this.IsDirty = true;
			 }
		}
 
		///<summary>
		///Required = true
		///DBType = string
		///C# Type = string
		///</summary> 
		public virtual string s_Label
		{
			 get 
			 {
			        return Getnvarchar_s(label);
			 }
			 set 
			 { 
			        Setnvarchar_s(value, ref label);
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.Label))
			        IsUpdateOrInsert.Add(Photos.ColumnNames.Label, true);
			        this.IsDirty = true;
			 }
		}
 
		///<summary>
		///Required = true
		///DBType = Int32
		///C# Type = Int32
		///</summary> 
		public virtual string s_PhotoCamera
		{
			 get 
			 {
			        return Getint_s(photoCamera);
			 }
			 set 
			 { 
			        Setint_s(value, ref photoCamera);
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.PhotoCamera))
			        IsUpdateOrInsert.Add(Photos.ColumnNames.PhotoCamera, true);
			        this.IsDirty = true;
			 }
		}
 
		///<summary>
		///Required = true
		///DBType = Int32
		///C# Type = Int32
		///</summary> 
		public virtual string s_PhotoLens
		{
			 get 
			 {
			        return Getint_s(photoLens);
			 }
			 set 
			 { 
			        Setint_s(value, ref photoLens);
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.PhotoLens))
			        IsUpdateOrInsert.Add(Photos.ColumnNames.PhotoLens, true);
			        this.IsDirty = true;
			 }
		}
 
		///<summary>
		///Required = false
		///DBType = string
		///C# Type = string
		///</summary> 
		public virtual string s_Diaphragm
		{
			 get 
			 {
			        return Getnvarchar_s(diaphragm);
			 }
			 set 
			 { 
			        Setnvarchar_s(value, ref diaphragm);
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.Diaphragm))
			        IsUpdateOrInsert.Add(Photos.ColumnNames.Diaphragm, true);
			        this.IsDirty = true;
			 }
		}
 
		///<summary>
		///Required = false
		///DBType = string
		///C# Type = string
		///</summary> 
		public virtual string s_ShutterSpeed
		{
			 get 
			 {
			        return Getnvarchar_s(shutterSpeed);
			 }
			 set 
			 { 
			        Setnvarchar_s(value, ref shutterSpeed);
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.ShutterSpeed))
			        IsUpdateOrInsert.Add(Photos.ColumnNames.ShutterSpeed, true);
			        this.IsDirty = true;
			 }
		}
 
		///<summary>
		///Required = false
		///DBType = string
		///C# Type = string
		///</summary> 
		public virtual string s_Asa
		{
			 get 
			 {
			        return Getnvarchar_s(asa);
			 }
			 set 
			 { 
			        Setnvarchar_s(value, ref asa);
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.Asa))
			        IsUpdateOrInsert.Add(Photos.ColumnNames.Asa, true);
			        this.IsDirty = true;
			 }
		}
 
		///<summary>
		///Required = false
		///DBType = string
		///C# Type = string
		///</summary> 
		public virtual string s_OrjFormat
		{
			 get 
			 {
			        return Getnvarchar_s(orjFormat);
			 }
			 set 
			 { 
			        Setnvarchar_s(value, ref orjFormat);
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.OrjFormat))
			        IsUpdateOrInsert.Add(Photos.ColumnNames.OrjFormat, true);
			        this.IsDirty = true;
			 }
		}
 
		///<summary>
		///Required = true
		///DBType = string
		///C# Type = string
		///</summary> 
		public virtual string s_Comments
		{
			 get 
			 {
			        return Getnvarchar_s(comments);
			 }
			 set 
			 { 
			        Setnvarchar_s(value, ref comments);
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.Comments))
			        IsUpdateOrInsert.Add(Photos.ColumnNames.Comments, true);
			        this.IsDirty = true;
			 }
		}
 
		///<summary>
		///Required = true
		///DBType = Int32
		///C# Type = Int32
		///</summary> 
		public virtual string s_Rating
		{
			 get 
			 {
			        return Getint_s(rating);
			 }
			 set 
			 { 
			        Setint_s(value, ref rating);
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.Rating))
			        IsUpdateOrInsert.Add(Photos.ColumnNames.Rating, true);
			        this.IsDirty = true;
			 }
		}
 
		///<summary>
		///Required = true
		///DBType = DateTime
		///C# Type = DateTime
		///</summary> 
		public virtual string s_CreateDate
		{
			 get 
			 {
			        return Getdatetime_s(createDate);
			 }
			 set 
			 { 
			        Setdatetime_s(value, ref createDate);
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.CreateDate))
			        IsUpdateOrInsert.Add(Photos.ColumnNames.CreateDate, true);
			        this.IsDirty = true;
			 }
		}
 
		///<summary>
		///Required = true
		///DBType = DateTime
		///C# Type = DateTime
		///</summary> 
		public virtual string s_UpdateDate
		{
			 get 
			 {
			        return Getdatetime_s(updateDate);
			 }
			 set 
			 { 
			        Setdatetime_s(value, ref updateDate);
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.UpdateDate))
			        IsUpdateOrInsert.Add(Photos.ColumnNames.UpdateDate, true);
			        this.IsDirty = true;
			 }
		}
 
		///<summary>
		///Required = true
		///DBType = bool
		///C# Type = bool
		///</summary> 
		public virtual string s_IsActive
		{
			 get 
			 {
			        return Getbit_s(isActive);
			 }
			 set 
			 { 
			        Setbit_s(value, ref isActive);
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.IsActive))
			        IsUpdateOrInsert.Add(Photos.ColumnNames.IsActive, true);
			        this.IsDirty = true;
			 }
		}
 
		///<summary>
		///Required = true
		///DBType = bool
		///C# Type = bool
		///</summary> 
		public virtual string s_IsDeleted
		{
			 get 
			 {
			        return Getbit_s(isDeleted);
			 }
			 set 
			 { 
			        Setbit_s(value, ref isDeleted);
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.IsDeleted))
			        IsUpdateOrInsert.Add(Photos.ColumnNames.IsDeleted, true);
			        this.IsDirty = true;
			 }
		}
 
		///<summary>
		///Required = true
		///DBType = bool
		///C# Type = bool
		///</summary> 
		public virtual string s_IsBadContent
		{
			 get 
			 {
			        return Getbit_s(isBadContent);
			 }
			 set 
			 { 
			        Setbit_s(value, ref isBadContent);
			      if (!IsUpdateOrInsert.ContainsKey(Photos.ColumnNames.IsBadContent))
			        IsUpdateOrInsert.Add(Photos.ColumnNames.IsBadContent, true);
			        this.IsDirty = true;
			 }
		}

        #endregion

		#region ColumnNames
        public class ColumnNames
        {
		public const string Id = "Id";
		public const string MemberId = "MemberId";
		public const string ChildCategoryId = "ChildCategoryId";
		public const string PhotoUrl = "PhotoUrl";
		public const string Name = "Name";
		public const string Label = "Label";
		public const string PhotoCamera = "PhotoCamera";
		public const string PhotoLens = "PhotoLens";
		public const string Diaphragm = "Diaphragm";
		public const string ShutterSpeed = "ShutterSpeed";
		public const string Asa = "Asa";
		public const string OrjFormat = "OrjFormat";
		public const string Comments = "Comments";
		public const string Rating = "Rating";
		public const string CreateDate = "CreateDate";
		public const string UpdateDate = "UpdateDate";
		public const string IsActive = "IsActive";
		public const string IsDeleted = "IsDeleted";
		public const string IsBadContent = "IsBadContent";

        }
        #endregion
    }
}

namespace PhotoHsn.BLL.Abstracts
{
    public class _PhotosBs : BaseBs
    {
		public Boolean insert(Photos p) { return this._insert<Photos>(p); }
        public Boolean update(Photos p) { return this._update<Photos>(p); }
        public Boolean delete(Photos p) { return this._delete<Photos>(p); }
        public List<Photos> get(string sql) { return this._get<Photos>(sql); }
        public List<Photos> get(System.Data.SqlClient.SqlCommand sqlcommand) { return this._get<Photos>(sqlcommand); }
		public List<Photos> get_all(List<string> columnNames) { return this._get_all<Photos>(columnNames); }
        public List<Photos> get_all_with_all_columns() { return this._get_all_with_all_columns<Photos>(); }
		public Photos get_by_primarykey(System.Guid pk, List<string> columnNames) { return this._get_by_primarykey<Photos>(pk, columnNames); }
    }
}
